﻿using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using System.IO;

namespace Blog.Core
{
    public class Program
    {
        public static void Main(string[] args)
        {

            CreateWebHostBuilder(args).Build().Run();
        }

        public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
            WebHost.CreateDefaultBuilder(args)
                .UseKestrel()  // 跨平台
                .UseContentRoot(Directory.GetCurrentDirectory())
                .UseIISIntegration()  //本地IIS
                .UseStartup<Startup>();
    }
}
